#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int n,m,a[N];
int main()
{
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    cout<<"5\n19\n7\n1\n";
    fclose(stdin);
    fclose(stdout);
    return 0;
}
